package com.zyx.settlement.server.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyx.settlement.server.mapper.SettlementMapper;
import com.zyx.settlement.server.model.po.SettlementPO;
import com.zyx.settlement.server.service.ISettlementService;

import java.math.BigDecimal;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/22 08:34
 */
@Service
public class SettlementServiceImpl extends ServiceImpl<SettlementMapper, SettlementPO> implements ISettlementService {
    @Override
    public Integer settlement(Integer accountId, BigDecimal amount) {
        return ThreadLocalRandom.current().nextInt(1000000, 1000000000);
    }
}
